package com.bright.controller;


import com.bright.NotFoundException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestController {
    @RequestMapping("/{id}/{name}")
    public String index(@PathVariable Integer id,@PathVariable String name){
//        int i = 9/0;
//        String Blog = null;
//        if (Blog == null){
//            throw new NotFoundException("博客找不到");
//        }
        System.out.println("-------------------index");
        return "index";
    }
}
